﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HopeHealth.WebApp.Controllers
{
    public class ArticleController : Controller
    {
        //
        // GET: /Article/

        public ActionResult Index()
        {
            List<Domain.Entities.Article> list = new Domain.Services.ArticleService().GetAll();
            return View(list);
        }

        public ActionResult New()
        {
            string ticksString = DateTime.Now.ToString();
            ViewBag.Message = new Api.ArticleController().Post("TEST", "Test title"+ticksString,
                "Test content" + ticksString, 1000);

            return View();
        }

    }
}
